*
*/
+
+struct _GtkContainerPrivate
+{
+ GtkWidget *focus_child;
+
+ GdkFrameClock *resize_clock;
+ guint resize_handler;
+
+ guint border_width : 16;
+ guint border_width_set : 1;
+
+ guint has_focus_chain : 1;
+ guint reallocate_redraws : 1;
+ guint resize_pending : 1;
+ guint restyle_pending : 1;
+ guint resize_mode : 2;
+ guint request_mode : 2;
+};
+
enum {
ADD,
REMOVE,
GtkWidget *widget;
G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
- g_return_if_fail (_GTK_IS_RESIZE_CONTAINER (container));
+ g_return_if_fail (GTK_IS_RESIZE_CONTAINER (container));
G_GNUC_END_IGNORE_DEPRECATIONS;
widget = GTK_WIDGET (container);
_gtk_size_request_cache_clear (_gtk_widget_peek_request_cache (widget));
G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
- if (_GTK_IS_RESIZE_CONTAINER (container))
+ if (((GtkContainer*)widget)->priv->resize_mode != GTK_RESIZE_PARENT)
break;
G_GNUC_END_IGNORE_DEPRECATIONS;
requisition.height > allocation.height)
{
G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
- if (_GTK_IS_RESIZE_CONTAINER (container))
+ if (GTK_IS_RESIZE_CONTAINER (container))
{
gtk_widget_size_allocate (widget, &allocation);
gtk_widget_set_allocation (widget, &allocation);
G_BEGIN_DECLS
-struct _GtkContainerPrivate
-{
- GtkWidget *focus_child;
-
- GdkFrameClock *resize_clock;
- guint resize_handler;
-
- guint border_width : 16;
- guint border_width_set : 1;
-
- guint has_focus_chain : 1;
- guint reallocate_redraws : 1;
- guint resize_pending : 1;
- guint restyle_pending : 1;
- guint resize_mode : 2;
- guint request_mode : 2;
-};
-
void _gtk_container_queue_resize (GtkContainer *container);
void _gtk_container_queue_restyle (GtkContainer *container);
void _gtk_container_set_border_width_set (GtkContainer *container,
gboolean border_width_set);
-static inline GtkResizeMode _gtk_container_get_resize_mode (GtkContainer *container);
-
-static inline GtkResizeMode
-_gtk_container_get_resize_mode (GtkContainer *container)
-{
- return container->priv->resize_mode;
-}
-
-#define _GTK_IS_RESIZE_CONTAINER(container) (_gtk_container_get_resize_mode (GTK_CONTAINER (container)) != GTK_RESIZE_PARENT)
-
G_END_DECLS
#endif /* __GTK_CONTAINER_PRIVATE_H__ */
GtkCssWidgetNode *widget_node = GTK_CSS_WIDGET_NODE (node);
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
- if (_GTK_IS_RESIZE_CONTAINER (widget_node->widget))
+ if (GTK_IS_RESIZE_CONTAINER (widget_node->widget))
widget_node->validate_cb_id = gtk_widget_add_tick_callback (widget_node->widget,
gtk_css_widget_node_queue_callback,
node,
GtkCssWidgetNode *widget_node = GTK_CSS_WIDGET_NODE (node);
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
- if (_GTK_IS_RESIZE_CONTAINER (widget_node->widget))
+ if (GTK_IS_RESIZE_CONTAINER (widget_node->widget))
gtk_widget_remove_tick_callback (widget_node->widget,
widget_node->validate_cb_id);
G_GNUC_END_IGNORE_DEPRECATIONS
EventControllerData *data;
GtkWidgetPrivate *priv;
+ g_return_if_fail (GTK_IS_WIDGET (widget));
+ g_return_if_fail (GTK_IS_EVENT_CONTROLLER (controller));
g_return_if_fail (widget == gtk_event_controller_get_widget (controller));
priv = widget->priv;
gtk_widget_size_allocate (widget, &allocation);
G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
- if (_gtk_container_get_resize_mode (container) == GTK_RESIZE_QUEUE)
+ if (gtk_container_get_resize_mode (container) == GTK_RESIZE_QUEUE)
gtk_widget_queue_draw (widget);
G_GNUC_END_IGNORE_DEPRECATIONS;
}
* we handle those ourselves upon ->configure_notify_received==TRUE.
*/
G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
- if (_gtk_container_get_resize_mode (container) == GTK_RESIZE_QUEUE)
+ if (gtk_container_get_resize_mode (container) == GTK_RESIZE_QUEUE)
{
gtk_widget_queue_resize_no_redraw (widget);
_gtk_container_dequeue_resize_handler (container);